package com.wang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.common.utils.PageUtils;
import com.wang.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zifan
 * @email 2436341408@qq.com
 * @date 2020-12-09 14:58:44
 */
public interface CategoryService extends IService<CategoryEntity> {

    List<CategoryEntity> CategoryEnsWithTree();

    PageUtils queryPage(Map<String, Object> params);

    void removeMenuByIds(List<Long> ids);

    /**
     * 根据CatelogId查询该菜单的全路径【2/22/222】【父/子/孙】
     * @param CatelogId
     * @return
     */
    Long[] getCatelogIds(Long CatelogId);

    void updateDetail(CategoryEntity category);
}

